import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const LIST: AppRouteRecordRaw = {
  path: '/list',
  name: 'list',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.list',
    requiresAuth: true,
    icon: 'icon-list',
    order: 2,
  },
  children: [
    // {
    //   path: 'search-table', // The midline path complies with SEO specifications
    //   name: 'SearchTable',
    //   component: () => import('@/views/list/search-table/index.vue'),
    //   meta: {
    //     locale: 'menu.list.searchTable',
    //     requiresAuth: true,
    //     roles: ['*'],
    //   },
    // },
    // {
    //   path: 'white-list',
    //   name: 'WhiteList',
    //   component: () => import('@/views/list/white-list/index.vue'),
    //   meta: {
    //     locale: 'menu.list.WhiteList',
    //     requiresAuth: true,
    //     roles: ['*'],
    //   },
    // },
         {
      path: 'home-index',
      name: 'HomeIndex',
      component: () => import('@/views/list/home-index/index.vue'),
      meta: {
        locale: '首页',
        requiresAuth: true,
        roles: ['*'],
      },
    },
      {
      path: 'imei-tanle',
      name: 'ImeiTanle',
      component: () => import('@/views/list/imei-tanle/index.vue'),
      meta: {
        locale: '终端管理',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'equipment-management',
      name: 'EquipmentManagement',
      component: () => import('@/views/list/equipment-management/index.vue'),
      meta: {
        locale: 'menu.list.EquipmentManagement',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'usage-record',
      name: 'UsageRecord',
      component: () => import('@/views/list/usage-record/index.vue'),
      meta: {
        locale: '使用记录',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'system-settings',
      name: 'SystemSettings',
      component: () => import('@/views/list/system-settings/index.vue'),
      meta: {
        locale: '系统设置',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'maintenance-record',
      name: 'MaintenanceRecord',
      component: () => import('@/views/list/maintenance-record/index.vue'),
      meta: {
        locale: '维修上报',
        requiresAuth: true,
        roles: ['*'],
      },
    },

    {
      path: 'financial-statements',
      name: 'FinancialStatements',
      component: () => import('@/views/list/financial-statements/index.vue'),
      meta: {
        locale: '财务报表',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default LIST;
